<?php defined('LFNC_PACKAGE') or die('forbidden');


/**
* MLT Web Engine
* http://www.molotsoft.ru
*
* @package MLT_WE
* @subpackage Lucky_Funcs
* @author Ivan Chistyakov <ivan@molotsoft.ru>
* @version $Id: pg_vexecf.lfnc.php 267 2009-06-22 05:39:57Z molotsoft@gmail.com $
* @link $HeadURL: http://lucky-funcs.googlecode.com/svn/trunk/funcs/pgsql/pg_vexecf.lfnc.php $
*/


function pg_vexecf($db, $query_format, $args) {
	if (is_pg_result($dbr = pg_vqueryf($db, $query_format, $args))) {
		$affected_rows = pg_affected_rows($dbr);
		pg_free_result($dbr);
		return $affected_rows;
	}
	return $dbr;
}


?>